/*     */ package com.zimbra.cs.account;
/*     */ 
/*     */ import com.zimbra.common.service.ServiceException;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public enum AttributeClass
/*     */ {
/*  28 */   mailRecipient("zimbraMailRecipient", false), 
/*  29 */   account("zimbraAccount", true), 
/*  30 */   alias("zimbraAlias", true), 
/*  31 */   distributionList("zimbraDistributionList", true), 
/*  32 */   cos("zimbraCOS", true), 
/*  33 */   globalConfig("zimbraGlobalConfig", true), 
/*  34 */   domain("zimbraDomain", true), 
/*  35 */   securityGroup("zimbraSecurityGroup", false), 
/*  36 */   server("zimbraServer", true), 
/*  37 */   alwaysOnCluster("zimbraAlwaysOnCluster", true), 
/*  38 */   ucService("zimbraUCService", true), 
/*  39 */   mimeEntry("zimbraMimeEntry", true), 
/*  40 */   objectEntry("zimbraObjectEntry", false), 
/*  41 */   timeZone("zimbraTimeZone", false), 
/*  42 */   zimletEntry("zimbraZimletEntry", true), 
/*  43 */   calendarResource("zimbraCalendarResource", true), 
/*  44 */   identity("zimbraIdentity", true), 
/*  45 */   dataSource("zimbraDataSource", true), 
/*  46 */   pop3DataSource("zimbraPop3DataSource", true), 
/*  47 */   imapDataSource("zimbraImapDataSource", true), 
/*  48 */   rssDataSource("zimbraRssDataSource", true), 
/*  49 */   liveDataSource("zimbraLiveDataSource", true), 
/*  50 */   galDataSource("zimbraGalDataSource", true), 
/*  51 */   signature("zimbraSignature", true), 
/*  52 */   xmppComponent("zimbraXMPPComponent", true), 
/*  53 */   aclTarget("zimbraAclTarget", true), 
/*  54 */   group("zimbraGroup", true), 
/*  55 */   groupDynamicUnit("zimbraGroupDynamicUnit", false), 
/*  56 */   groupStaticUnit("zimbraGroupStaticUnit", false), 
/*  57 */   shareLocator("zimbraShareLocator", true);
/*     */   
/*  59 */   public static final String OC_zimbraAccount = account.getOCName();
/*  60 */   public static final String OC_zimbraAclTarget = aclTarget.getOCName();
/*  61 */   public static final String OC_zimbraAlias = alias.getOCName();
/*  62 */   public static final String OC_zimbraCalendarResource = calendarResource.getOCName();
/*  63 */   public static final String OC_zimbraCOS = cos.getOCName();
/*  64 */   public static final String OC_zimbraDataSource = dataSource.getOCName();
/*  65 */   public static final String OC_zimbraDistributionList = distributionList.getOCName();
/*  66 */   public static final String OC_zimbraDomain = domain.getOCName();
/*  67 */   public static final String OC_zimbraGalDataSource = galDataSource.getOCName();
/*  68 */   public static final String OC_zimbraGlobalConfig = globalConfig.getOCName();
/*  69 */   public static final String OC_zimbraGroup = group.getOCName();
/*  70 */   public static final String OC_zimbraGroupDynamicUnit = groupDynamicUnit.getOCName();
/*  71 */   public static final String OC_zimbraGroupStaticUnit = groupStaticUnit.getOCName();
/*  72 */   public static final String OC_zimbraIdentity = identity.getOCName();
/*  73 */   public static final String OC_zimbraImapDataSource = imapDataSource.getOCName();
/*  74 */   public static final String OC_zimbraMailRecipient = mailRecipient.getOCName();
/*  75 */   public static final String OC_zimbraMimeEntry = mimeEntry.getOCName();
/*  76 */   public static final String OC_zimbraPop3DataSource = pop3DataSource.getOCName();
/*  77 */   public static final String OC_zimbraRssDataSource = rssDataSource.getOCName();
/*  78 */   public static final String OC_zimbraServer = server.getOCName();
/*  79 */   public static final String OC_zimbraAlwaysOnCluster = alwaysOnCluster.getOCName();
/*  80 */   public static final String OC_zimbraUCService = ucService.getOCName();
/*  81 */   public static final String OC_zimbraSignature = signature.getOCName();
/*  82 */   public static final String OC_zimbraXMPPComponent = xmppComponent.getOCName();
/*  83 */   public static final String OC_zimbraZimletEntry = zimletEntry.getOCName();
/*  84 */   public static final String OC_zimbraShareLocator = shareLocator.getOCName();
/*     */   String mOCName;
/*     */   
/*  87 */   private static class TM { static Map<String, AttributeClass> sOCMap = new HashMap();
/*     */   }
/*     */   
/*     */ 
/*     */   boolean mProvisionable;
/*     */   private AttributeClass(String ocName, boolean provisionable)
/*     */   {
/*  94 */     this.mOCName = ocName;
/*  95 */     this.mProvisionable = provisionable;
/*     */     
/*  97 */     TM.sOCMap.put(ocName, this);
/*     */   }
/*     */   
/*     */   public static AttributeClass getAttributeClass(String ocName) {
/* 101 */     return (AttributeClass)TM.sOCMap.get(ocName);
/*     */   }
/*     */   
/*     */   public static AttributeClass fromString(String s) throws ServiceException {
/*     */     try {
/* 106 */       return valueOf(s);
/*     */     } catch (IllegalArgumentException e) {
/* 108 */       throw ServiceException.PARSE_ERROR("unknown attribute class: " + s, e);
/*     */     }
/*     */   }
/*     */   
/*     */   public String getOCName() {
/* 113 */     return this.mOCName;
/*     */   }
/*     */   
/*     */   public boolean isProvisionable() {
/* 117 */     return this.mProvisionable;
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/AttributeClass.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */